package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysListenStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: Admin
 * @date: 2021/11/3 14:26
 * @description:
 */
@Mapper
public interface SysListenStudentMapper {
    /**
     * 查看所有学生
     * @param sysListenStudent
     * @return
     */
    List<SysListenStudent> selectStudentAll(SysListenStudent sysListenStudent);

    /**
     * 删除学生
     * @param ids
     * @return
     */
    public int deleteUserByIds(Integer ids);

    /**
     * 修改学生状态
     * @param ids
     * @return
     */
    public int updateListenStatusByListenIdAfter(Integer ids);

    /**
     * 添加学生
     * @param sysListenStudent
     * @return
     */
    public int insertAll(SysListenStudent sysListenStudent);

    /**
     * T
     * @param sysListenStudent
     * @return
     */
    public int insert(SysListenStudent sysListenStudent);

    /**
     * 查找状态
     * @param id
     * @return
     */
    public int searcListenStatusById(Integer id);

    /**
     *
     * @param id
     * @return
     */
    public SysListenStudent searchAllByListenIdAfter(Integer id);


    /**
     * 根据id修改备注
     * @param id
     * @param text
     */
    public int updateListenRemarksByListenId(@Param("id") Integer id, @Param("text")String text);
}
